/**
 * konfiguration von Export Daten
 * @author admin
 */
package temprom.GUI;

import javax.swing.JButton;

/**
 *
 * @author admin
 */
public class FrmConfig extends javax.swing.JPanel {

    /**
     *
     */
    public static JButton b1;
    /**
     * Creates new form FrmConfig
     */
    public FrmConfig() {
        super();
        initComponents();
        b1 = btnWeiter;
        add(b1);
    }

    /**
     *
     * @return
     * Hilt die Info für den Filename
     */
    public String GetFileName()
    {
        return txtNameExport.getText() + ddFileExtension.getSelectedItem().toString();
    }
    /**
     *
     * @return
     * Uebergiebt den Pfsd wohin zu schreiben
     */
    public String GetFilePath()
    {
        return txtPath.getText();
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblTitle = new javax.swing.JLabel();
        lblNameExport = new javax.swing.JLabel();
        txtNameExport = new javax.swing.JTextField();
        lblFileType = new javax.swing.JLabel();
        ddFileExtension = new javax.swing.JComboBox();
        lblFilePath = new javax.swing.JLabel();
        txtPath = new javax.swing.JTextField();
        btnWeiter = new javax.swing.JButton();
        jLocaleChooser1 = new com.toedter.components.JLocaleChooser();

        setName("pnlConfig"); // NOI18N

        lblTitle.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        lblTitle.setText("Konfigurationen vornehmen");

        lblNameExport.setText("Name Exportfile");

        lblFileType.setText("Filetyp");

        ddFileExtension.setModel(new javax.swing.DefaultComboBoxModel(new String[] { ".txt", ".xml", ".xls", ".csv", ".html" }));

        lblFilePath.setText("Pfad");

        txtPath.setText("C:\\Users\\Public\\Documents");

        btnWeiter.setText("Weiter");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLocaleChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 148, Short.MAX_VALUE)
                        .addComponent(btnWeiter, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lblTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblNameExport)
                            .addComponent(lblFileType)
                            .addComponent(lblFilePath))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtPath, javax.swing.GroupLayout.DEFAULT_SIZE, 446, Short.MAX_VALUE)
                            .addComponent(ddFileExtension, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtNameExport))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(lblTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNameExport)
                    .addComponent(txtNameExport, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFileType)
                    .addComponent(ddFileExtension, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFilePath)
                    .addComponent(txtPath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addComponent(btnWeiter, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLocaleChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnWeiter;
    private javax.swing.JComboBox ddFileExtension;
    private com.toedter.components.JLocaleChooser jLocaleChooser1;
    private javax.swing.JLabel lblFilePath;
    private javax.swing.JLabel lblFileType;
    private javax.swing.JLabel lblNameExport;
    private javax.swing.JLabel lblTitle;
    private javax.swing.JTextField txtNameExport;
    private javax.swing.JTextField txtPath;
    // End of variables declaration//GEN-END:variables
}
